package com.apposcopy.ella.runtime;

import android.content.Context;
import android.content.Intent;

public class IntentRecorder extends Recorder {

	@Override
	public void send(Context context, int requestCode, int resultCode, Object data) {
		Intent hookedIntent = (Intent)data;
		Intent sendIntent = new Intent();
		sendIntent.setAction("edu.iscas.appcheckclient.broadcastreceiver.SEND_INTENT");
		sendIntent.putExtra("HOOKED_INTENT", hookedIntent);
		sendIntent.putExtra("RESULT_CODE", resultCode);
		context.sendBroadcast(sendIntent);
	}
	
}
